#coding:utf8

import re

p = re.compile(r"\${day[-|+](\d+)}",re.S)
if re.match(r"\${day[-|+]\d+}","${day-1}${day+}",re.S):
    for x in  re.findall(r"\${day([-|+])(\d+)}","${day-3423}${day+}",re.S):
        print x




#1i=1
#j=1
#while i < 10 :
#    k = 1
#    while j < i:
#        print(k," ")
#        k = (k*(i-j))/j
#        print(k)
#        print("\n")
#        j = j + 1
#    i = i + 1
#
# N = [0,1]
#
# N = N + [ N[n] + N[n+1] for n in [0] ]
#
# print(N)
#
# N = N + [ N[n] + N[n+1] for n in [1] ]
#
# print(N)
#
# N = N + [ N[n] + N[n+1] for n in [2] ]
#
# print(N)
#
# N = N + [ N[n] + N[n+1] for n in [3] ]
#
# print(N)

# print("wwwwwwwwww")
# N = [0,1]
# for i in range(9):
#     N = N + [ N[n] + N[n+1] for n in [i] ]
#     print(N)

# def fib(n):
#     if n == 0 :
#         return 0
#     if n == 1 :
#         return 1
#     return fib(n-1) + fib(n-2)
#
# #print(fib(10))
#
# for i in range(9):
#     print(fib(i))
#
# def normalize(str):
#     return str[0].upper() + str[1:len(str)].lower()
#     #return str.capitalize()
#
# print(list(map(normalize,["jsijjseifLL","Sdfasadf"])))


